<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets">
<f:view locale="#{facesContext.externalContext.requestLocale}">
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>#{msg.titulo}</title>
</head>
<h:body>
<div class="superior">
<font size="40" color="#FFFFFF">#{msg.nome_banco}</font>
</div>
<ui:insert name="menu">
    <ui:include src="menu.xhtml" />
</ui:insert>
<h:form>
<div class="painel">
	<table border="0" width="100%">
	<tr>
		<td align="left" style="border-bottom: #FF6600 1px solid;" colspan="3"><b>#{msg.cadastrar_favorecido}</b></td>
	</tr>
	<tr>
		<td style="border-bottom: #FF6600 1px solid;" align="right">#{msg.label_favorecido}</td>
		<td style="border-bottom: #FF6600 1px solid;" colspan="2"><h:inputText value="#{favorecidoMB.favorecidoFrm.nome}" id="nomeFavorecido" required="true" converterMessage="#{msg.erro_obrigatorio}"/></td>
	</tr>
	<tr>
		<td style="border-bottom: #FF6600 1px solid;" align="right">#{msg.label_codigoBanco}</td>
		<td style="border-bottom: #FF6600 1px solid;" colspan="2">
		<h:inputText value="#{favorecidoMB.favorecidoFrm.numeroBanco}" id="numeroBanco" converterMessage="#{msg.label_apenas_numeros}" required="true" requiredMessage="#{msg.erro_obrigatorio}" validatorMessage="#{msg.erro_valorInvalido}">
		<f:validateLongRange maximum="999"/>
		</h:inputText>
		<h:message for="numeroBanco" errorStyle="color:red"/></td>
	</tr>
	<tr>
		<td style="border-bottom: #FF6600 1px solid;" align="right">#{msg.label_agencia}</td>
		<td style="border-bottom: #FF6600 1px solid;" colspan="2"><h:inputText size="1" value="#{favorecidoMB.favorecidoFrm.numeroAgencia}" id="numeroAgencia" converterMessage="#{msg.label_apenas_numeros}" required="true" requiredMessage="#{msg.erro_obrigatorio}" validatorMessage="#{msg.erro_valorInvalido}">
		<f:validateLongRange minimum="1000" maximum="9999"/>
		</h:inputText>
		<h:message for="numeroAgencia" errorStyle="color:red"/></td>
	</tr>
	<tr>
		<td style="border-bottom: #FF6600 1px solid;" align="right">#{msg.label_conta}</td>
		<td style="border-bottom: #FF6600 1px solid;" colspan="2">
		<h:inputText value="#{favorecidoMB.favorecidoFrm.numeroConta}" id="numeroConta" converterMessage="#{msg.label_apenas_numeros}" required="true" requiredMessage="#{msg.erro_obrigatorio}" validatorMessage="#{msg.erro_valorInvalido}">
		<f:validateLongRange minimum="10000" maximum="99999"/>
		</h:inputText>
		<h:message for="numeroConta" errorStyle="color:red"/></td>
	</tr>
	
	<tr>
		<td align="center" colspan="3"><h:commandButton value="#{msg.botao_salvar}" action="#{favorecidoMB.incluirFavorecido}" /></td>
	</tr>
	</table>
</div>
</h:form>
</h:body>
</f:view>
</html>